package com.xsq.netty.bean;

public class NettyMsg {

    //类型 0xAB
    private byte type;

    //信息标志  0xAB
    private byte flag;

    //主题信息的长度
    private int length;

    //主题信息
    private String body;

    public NettyMsg() {

    }

    public NettyMsg(byte type, byte flag, int length, String body) {
        this.type = type;
        this.flag = flag;
        this.length = length;
        this.body = body;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public byte getFlag() {
        return flag;
    }

    public void setFlag(byte flag) {
        this.flag = flag;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

}
